﻿/*
=======================================================
    WireropeType【钢丝绳类型】
=======================================================
*/

namespace Services
{
    public interface IWireropeTypeLogic : ILogic<WireropeTypeModel, WireropeTypeFilterModel>
    {
        int UpdateIsDelete(bool flag, params int[] ids);
    }


    public class WireropeTypeLogic : BaseLogic<WireropeTypeModel, WireropeTypeFilterModel, WireropeType, IWireropeTypeRepository, IWireropeTypeMapping, IWireropeTypeService>, IWireropeTypeLogic
    {
        public WireropeTypeLogic(ICurrentUser currentUser, IWireropeTypeRepository repository, IWireropeTypeMapping mapping, IWireropeTypeService service)
            : base(currentUser, repository, mapping, service)
        {
        }

        #region 启用/禁用  UpdateIsDelete
        public int UpdateIsDelete(bool flag, params int[] ids)
        {
            return _repository.UpdateIsDelete(flag, ids);
        }
        #endregion
        
    }
}
